package com.ebupt.migu.music.unifyAudit.controller;

import com.ebupt.migu.music.unifyAudit.pojo.AuditDataResult;
import com.ebupt.migu.music.unifyAudit.service.UnifyAuditService;
import com.ebupt.migu.music.unifyAudit.util.ResultObject;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 *  统一审核能力接入
 * @author tz
 */
@RestController
@RequestMapping("/unifyAudit")
public class UnifyAuditController {

    @Resource
    private UnifyAuditService unifyAuditService;

    @PostMapping("/result/notify")
    public ResultObject resultNotify(@RequestBody AuditDataResult result) {
        return unifyAuditService.resultNotify(result);
    }

}
